﻿/***************************************************************
*       
* add by OceanHo 2015/8/26 13:04:50
*
****************************************************************/

using oceanho.webapi.factory.httpCore.ReqKernal;
using oceanho.webapi.factory.httpEntity;
using System;
using System.Collections.Generic;
using System.Text;

namespace oceanho.webapi.factory
{
    /// <summary>
    /// 定义一个工具类。用于对http_service_module的配置管理以及ReqCacheDb的刷新管理
    /// </summary>
    public sealed class AppUtility : IDisposable
    {

        internal static AppCfg Cfg = null;                         // 安全配置类
        internal static IReqCacheDb ReqCacheFactory = null;        // 定义一个
        static AppUtility()
        {
            Cfg = new AppCfg();
            // ReqCacheFactory = new DefaultReqCacheDb();
        }

        /// <summary>
        /// 初始化配置
        /// </summary>
        /// <param name="cfg">化配置文件</param>
        public static void Init(AppCfg cfg)
        {
            Cfg = cfg;
        }

        /// <summary>
        /// 释放资源
        /// </summary>
        public void Dispose()
        {
        }
    }
}
